package com.example.network.api;


import com.example.models.FirstHand;
import com.example.models.data.ResponseData;
import com.example.models.data.Study.StudyBannerData;
import com.example.models.data.Study.StudyListCourseData;
import com.example.models.data.Study.StudyListTryData;
import com.example.models.data.Study.StudyTopicData;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * 董建业  时间:2017/4/10.
 * 数据请求接口
 */

public interface UserService {

    @FormUrlEncoded
    @POST("/app/v1/first_hand")
    Observable<ResponseData<FirstHand>> firstHand(@FieldMap Map<String,String> params);


    @FormUrlEncoded
    @POST("/app/v1/get_host")
    Observable<ResponseData<FirstHand>> getHost(@FieldMap Map<String,String> params);

    @FormUrlEncoded
    @POST("/app/v1/list_banner")
    Observable<ResponseData<StudyBannerData>> getlistbanner(@FieldMap Map<String,String> params);

    @FormUrlEncoded
    @POST("/app/v1/list_try")
    Observable<ResponseData<StudyListTryData>> getlisttry(@FieldMap Map<String,String> params);


    @FormUrlEncoded
    @POST("/app/v1/list_course")
    Observable<ResponseData<StudyListCourseData>> getlistcoures(@FieldMap Map<String,String> params);

    @FormUrlEncoded
    @POST("/app/v1/list_topic")
    Observable<ResponseData<StudyTopicData>> getlisttopic(@FieldMap Map<String,String> params);
}
